#include "EpilScope.h"
#include "EpilInterpreter.h"


EpilScope::EpilScope( EpilInterpreter * interpreter, EpilScope * parent )
: m_interpreter( interpreter )
, m_parent( parent )
, m_locals( interpreter )
{
}


EpilScope::~EpilScope()
{
}


EpilObject * EpilScope::GetLocal( const tstring & name ) const
{
	return m_locals.GetField( name );
}


void EpilScope::SetLocal( const tstring & name, EpilObject * obj )
{
	m_locals.SetField( name, obj );
}